﻿CREATE TRIGGER CommitteeBankAccountDeposites_Tracking_Delete
ON [dbo].[CommitteeBankAccountDeposites] 
AFTER delete
AS 
BEGIN
	UPDATE Sync.CommitteeBankAccountDeposites_Tracking 
	SET LastUpdatedDate  = getdate(),
		IsDeleted = 1
	FROM Sync.CommitteeBankAccountDeposites_Tracking s JOIN DELETED i
    ON s.CommitteeBankAccountDepositID = i.CommitteeBankAccountDepositID
END











